package cn.darksoul3.springcloud.core.api;

import cn.darksoul3.common.result.ObjectResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "cloud-tick",fallback = TickFallbackSvc.class)
public interface TickSvc {

    @GetMapping(value = "/tick")
    ObjectResult tick();

    @GetMapping(value = "/tout")
    ObjectResult tout() throws InterruptedException;

    @GetMapping(value = "/tbreak/{id}")
    ObjectResult tBreak(@PathVariable("id")Integer id);

}
